I don't know of the historical reasons for this, but by convention
hex values are stored without a leading '0x' in the backend and
with a leading '0x' in the device configuration.
This patch also removes handling of the case where vslot is missing
from the backend, should never occur.
Signed-off-by: Simon Horman <horms@verge.net.au>
# Per device uuid info
dev_dict['uuid'] = self.readBackend(devid, 'uuid-%d' % i)
- vslot = self.readBackend(devid, 'vslot-%d' % i)
- if vslot != None:
- dev_dict['vslot'] = self.readBackend(devid, 'vslot-%d' % i)
- else:
- dev_dict['vslot'] = AUTO_PHP_SLOT_STR
+ dev_dict['vslot'] = '0x%s' % \
+ self.readBackend(devid, 'vslot-%d' % i)
#append opts info
opts = self.readBackend(devid, 'opts-%d' % i)